home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: johnma2@ix.netcom.com(John Ma )
- Newsgroups: comp.lang.c
- Subject: Pass password to "passwd" in C
- Date: 27 Jan 1996 15:58:09 GMT
- Organization: Netcom
- Message-ID: <4edi2h$p0k@ixnews7.ix.netcom.com>
- NNTP-Posting-Host: ix-wh6-18.ix.netcom.com
- X-NETCOM-Date: Sat Jan 27 7:58:09 AM PST 1996
-
- Hi:
-
-
- I am writing a small utility program to change password on UNIX
- machine. The command will look like: set_password vendor1 (password
- for vendor will be set to guest password); or set_password vendor2
- (password for same vendor will be set to internal password). The
- reason because we use the same login id/password as vendor due to file
- access reason, but we want to control their access, so that we want to
- change to their password only if we feel they need to dial in.
-
- I am using C, and I will need to use "passwd" command, but passwd need
- pass 3 arguments on three prompt(old password, new password, retypr new
- password), how can I do it in the program to respond to prompt
- automatically?
-
- Any information is help.
-
- Thank you very much.
-
- John
-
-